Skip to content

Conversation

@heavyengineer
Copy link
Contributor

@heavyengineer heavyengineer commented Oct 5, 2025

The previous implementation had permissions issues in some scenarios and wasn't portable.

This PR introduces a shell script for adding the docker container to .mcp.json by manipulating an existing file, or creating a new.mcp.json file. The script is run in the project directory and determines the correct uid and gid for the container to run and all the necessary paths.
The user cd's to their project directory runs, e.g. ~/spec-workflow-mcp/containers/setup-mcp.sh and they should be good to go.

I've been using this successfully for a week or so. Works well in my experience.

@Pimzino Pimzino requested a review from Copilot November 7, 2025 13:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the spec-workflow-mcp container setup to use runtime user/group ID mapping via the --user flag, replacing the previous build-time user configuration. The changes include a new automated setup script, updated documentation, and Dockerfile modifications to support this new approach.

Key changes:

  • Introduces an automated setup script (setup-mcp.sh) that detects user/group IDs and configures .mcp.json automatically
  • Updates Dockerfile to make application files world-readable and removes fixed user configuration, enabling runtime user mapping
  • Updates documentation to reflect the new configuration approach with full project directory mounting

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
containers/setup-mcp.sh New automated setup script that configures .mcp.json with proper user/group IDs and manages .spec-workflow directory permissions
containers/README.md Updated documentation to include automated setup instructions and clarify the new runtime user mapping approach
containers/Dockerfile Modified to remove fixed user configuration, make files world-readable, and support runtime --user flag usage

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant